﻿namespace Digitalmes.Application.Sys.Users.Commands;

internal sealed class CreateUserCommandValidator : AbstractValidator<CreateUserCommand>
{
    public CreateUserCommandValidator()
    {
        RuleFor(v => v.User.Username).MaximumLength(64).NotEmpty();
        RuleFor(v => v.User.Realname).MaximumLength(64).NotEmpty();
        RuleFor(v => v.User.Remark).MaximumLength(128);
    }
}
